from configparser import *

class language:
    def __init__(self):
        with open("./resources/language/chinese.cfg","w")as f:
            conf = ConfigParser()
            conf.read("./resources/language/chinese.cfg")
            conf.add_section("face")
            conf.add_section("setting")
            conf.add_section("write")
            conf.add_section("start")
            conf.add_section("music")
            conf.set("face","start","开始")
            conf.set("face", "setting", "设置")
            conf.set("face", "quit", "退出")
            conf.set("setting", "setting", "设置")
            conf.set("setting", "set_language", "系统语言")
            conf.set("setting", "music", "音乐")
            conf.set("setting", "back", "返回")
            conf.set("setting", "on_off", "开|关")
            conf.set("setting", "english", "english")
            conf.set("setting", "chinese", "chinese")
            conf.set("start", "setting_write", "默写设置")
            conf.set("start", "setting_language", "默写语种")
            conf.set("start", "write_num", "默写编号")
            conf.set("start", "en", "英文")
            conf.set("start", "jp", "日语")
            conf.set("start", "errer", "编号有误")
            conf.set("start", "back", "返回")
            conf.set("start", "start", "开始默写")
            conf.set("music", "music_player", "播放器")
            conf.set("music", "back", "返回")
            conf.set("write", "endwrite", "提交&结束")
            conf.set("write", "save_next", "保存&下个")
            conf.write(f)

    def main(self):
        pass

if(__name__ == "__main__"):
    language().main()